<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8"/>
  <title>user</title>
  <link rel="stylesheet" href="../../static/css/bootstrap.css" th:href="@{/css/bootstrap.css}"/>
</head>
<body class="container">
<br/>
<h1>修改新闻</h1>
<br/><br/>
<div class="with:80%">
  <form class="form-horizontal"   th:action="@{/editArticle}" th:object="${article}"  method="post">
    <input type="hidden" name="id" th:value="*{id}" />
    <div class="form-group">
      <label for="title" class="col-sm-2 control-label">新闻标题</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" name="title"  id="title" th:value="*{title}" placeholder="Title"/>
      </div>
    </div>
    <div class="form-group">
      <label for="author" class="col-sm-2 control-label" >新闻作者</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" name="author" id="author"  th:value="*{author}" placeholder="Author"/>
      </div>
    </div>
    <div class="form-group">
      <label for="content" class="col-sm-2 control-label">新闻内容</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" name="content"  id="content" th:value="*{content}" placeholder="Content"/>
      </div>
    </div>
    <div class="form-group">
      <label for="ctime" class="col-sm-2 control-label">新闻创建时间</label>
      <div class="col-sm-10">
        <input type="text" th:value="${#dates.format(article.ctime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" name="ctime"  id="ctime" placeholder="Ctime"/>
      </div>
    </div>
    <div class="form-group">
      <label for="utime" class="col-sm-2 control-label">新闻更新时间</label>
      <div class="col-sm-10">
        <input type="text" th:value="${#dates.format(#dates.createNow(),'yyyy-MM-dd hh:mm:ss')}" class="form-control" name="utime"  id="utime" placeholder="Utime"/>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <input type="submit" value="提交" class="btn btn-info" />
        &nbsp; &nbsp; &nbsp;
        <a href="viewUserList.html" th:href="@{/userList}" class="btn btn-info">返回</a>
      </div>

    </div>
  </form>
</div>
</body>
</html>
